<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{static/layui-v2.6.8/layui/css}">
</head>
<body>
<div class="layui-btn-container"   style="margin-top: 10px;margin-left: 10px;">
    <a href="/user/add" class="layui-btn">新增</a>
</div>
<table class="layui-table">
    <thead>
    <th>学号</th>
    <th>姓名</th>
    <th>年龄</th>
    <th>操作</th>
    </thead>
    <tbody>
    <!--/*@thymesVar id="userList" type="ch"*/-->
    <tr th:each="user:${userList}">
        <td>[[${user.id}]]</td>
        <td>[[${user.name}]]</td>
        <td>[[${user.age}]]</td>
        <td>
            <a th:href="'/user/edit/'+${user.id}">编辑</a>
            <a th:href="'/user/delete/'+${user.id}">删除</a>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>